""" -*- coding: utf-8 -*-"""
from flask import Flask, jsonify
from config import config
from file_mg.exts import exts_init_app
from file_mg.views import user
def create_app():
    app = Flask(__name__, template_folder='templates')

    app.config.from_object(config['development'])

    exts_init_app(app)

    app.register_blueprint(user.user_bp)
    @app.route('/')
    def index():
        return jsonify({
            'message': 'Hello World!'
        })

    return app